package com.qf.erp_system_admin.service.impl;

import com.qf.erp_system_admin.entity.Depot;
import com.qf.erp_system_admin.mapper.DepotMapper;
import com.qf.erp_system_admin.service.DepotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service
public class DepotServiceImpl implements DepotService {
    @Autowired
    private DepotMapper depotMapper;

    @Override
    public List<Depot> findAll(HashMap<String, String> map) {
        return depotMapper.findAll(map);
    }

    @Override
    public boolean del(int depId) {
        return depotMapper.del(depId);
    }

    @Override
    public boolean delBatch(List<Integer> ids) {
        return depotMapper.delBatch(ids);
    }

    @Override
    public boolean add(Depot depot) {
        return depotMapper.add(depot);
    }

    @Override
    public boolean up(Depot depot) {
        return depotMapper.up(depot);
    }


}
